package com.ruoyi.auction.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 拍卖信息管理对象 sh_auction
 * 
 * @author ruoyi
 * @date 2021-12-29
 */
public class ShAuction extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long aid;

    /** 拍卖时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "拍卖时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auctionTime;

    /** 收藏家 */
    @Excel(name = "收藏家")
    private String collector;

    /** 拍卖价 */
    @Excel(name = "拍卖价")
    private BigDecimal auctionPrice;

    /** 文物类型 */
    @Excel(name = "文物类型")
    private String type;

    /** 拍卖地址 */
    @Excel(name = "拍卖地址")
    private String address;

    /** 介绍 */
    @Excel(name = "介绍")
    private String intrduce;

    /** 产品id */
    @Excel(name = "产品id")
    private Long pid;

    public void setAid(Long aid) 
    {
        this.aid = aid;
    }

    public Long getAid() 
    {
        return aid;
    }
    public void setAuctionTime(Date auctionTime) 
    {
        this.auctionTime = auctionTime;
    }

    public Date getAuctionTime() 
    {
        return auctionTime;
    }
    public void setCollector(String collector) 
    {
        this.collector = collector;
    }

    public String getCollector() 
    {
        return collector;
    }
    public void setAuctionPrice(BigDecimal auctionPrice) 
    {
        this.auctionPrice = auctionPrice;
    }

    public BigDecimal getAuctionPrice() 
    {
        return auctionPrice;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setIntrduce(String intrduce) 
    {
        this.intrduce = intrduce;
    }

    public String getIntrduce() 
    {
        return intrduce;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("aid", getAid())
            .append("auctionTime", getAuctionTime())
            .append("collector", getCollector())
            .append("auctionPrice", getAuctionPrice())
            .append("type", getType())
            .append("address", getAddress())
            .append("intrduce", getIntrduce())
            .append("pid", getPid())
            .toString();
    }
}
